/**
 * 
 */
package cn.tonyqiu.wonuly.dao.ibatis;

import java.util.List;

import cn.tonyqiu.wonuly.dao.ScheduleDao;
import cn.tonyqiu.wonuly.model.Schedule;

/**
 * @author <a href="mailto:tony.qiu.smart@gmail.com">Tony Qiu</a>
 *
 */
public class ScheduleDaoiBatis extends GenericDaoiBatis<Schedule, Integer> implements ScheduleDao {
	public ScheduleDaoiBatis() {
		super(Schedule.class);
	}

	/* (non-Javadoc)
	 * @see cn.tonyqiu.wonuly.dao.ScheduleDao#getSchedureByUserId(int)
	 */
	@Override
	@SuppressWarnings("unchecked")
	public List<Schedule> getSchedulesByUserId(int userId) {
		return getSqlMapClientTemplate().queryForList("getSchedulesByUserId",userId);
	}
}
